package lesson.c6.mediator;

public class Oil {
	private int production;
	
	private float change;
	
	public Oil(int production){
		this.production = production;
	}
	
	public int getProduction(){
		return production;
	}
	
	public float getChange(){
		return change;
	}
	
	public void setProduction(int production){
		this.production = production;
	}
	
	public void setProduction(int production, Mediator m){
		change = (production - this.production) * 1f/ this.production;
		this.production = production;
		m.OilAffectGasoline();
	}
}
